from flask import Blueprint, render_template

bp = Blueprint("view", __name__, url_prefix="/")


@bp.route("/")
def get_view():
    return render_template("index.html")


@bp.route("/KNN", methods=['POST', 'GET'])
def get_KNN():
    return render_template("KNN.html")


@bp.route("/K-means", methods=['POST', 'GET'])
def get_Kmeans():
    return render_template("K_means.html")


@bp.route("/GMM", methods=['POST', 'GET'])
def get_GMM():
    return render_template("GMM.html")


@bp.route("/RandomForest", methods=['POST', 'GET'])
def get_RandomForest():
    return render_template("RandomForest.html")


@bp.route("/SVM", methods=['POST', 'GET'])
def get_SVM():
    return render_template("SVM.html")


@bp.route("/BPnet", methods=['POST', 'GET'])
def get_BPnet():
    return render_template("BPnet.html")


@bp.route("/doc2vec", methods=['POST', 'GET'])
def get_doc2vec():
    return render_template("doc2Vec.html")
